
import { env } from '@/utils/env'
import http from './http'
import type { ResponeData } from '@/types/HttpType'
import type { PageData } from '@/types/PageData'

 
export const countOrderCategory = async (params:any):Promise<ResponeData<any>> => {
    return await http<any>({
        url: env.VITE_JIANCAI + '/count/order/category',
        method: 'get',
        params
    })
}

export const countOrderCompany = async (params:any):Promise<ResponeData<any>> => {
    return await http<any>({
        url: env.VITE_JIANCAI + '/count/order/company',
        method: 'get',
        params
    })
}

export const countOrder = async (params:any):Promise<ResponeData<any>> => {
    return await http<any>({
        url: env.VITE_JIANCAI + '/count/order',
        method: 'get',
        params
    })
}

export const countGoods = async (params:any):Promise<ResponeData<any>> => {
    return await http<any>({
        url: env.VITE_JIANCAI + '/count/goods',
        method: 'get',
        params
    })
}

export const countOrderProject = async (params:any):Promise<ResponeData<any>> => {
    return await http<any>({
        url: env.VITE_JIANCAI + '/count/order/project',
        method: 'get',
        params
    })
}

